package com.jack.payment.dao.payment;

import com.jack.payment.entity.filter.PayFilter;
import com.jack.payment.entity.generate.payment.PaymentAttachModel;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PaymentAttachDao {
    /**
     * 根据id查询出指定的信息
     * @param orderNo
     * @return
     */
    PaymentAttachModel getAppointPayAttach(@Param("orderNo") String orderNo);

    /**
     * 筛选出支付的附加数据条数
     * @param payAttachFilter
     * @return
     */
    Integer getFilterPayAttachCount(PayFilter.PayAttachFilter payAttachFilter);

    /**
     * 筛选出调用支付的附加数据
     * @return
     */
    List<PaymentAttachModel> getFilterPayAttachList(PayFilter.PayAttachFilter payAttachFilter);

    /**
     * 新增一条生成支付的信息
     * @param paymentAttachModel
     * @return
     */
    boolean insertPayAttachContent(PaymentAttachModel paymentAttachModel);

    /**
     * 修改一条支付信息
     * @param paymentAttachModel
     * @return
     */
    boolean updatePayAttachContent(PaymentAttachModel paymentAttachModel);
}
